#!/bin/bash
#zookeeper压缩文件名
zookeeper_file_name=$(ls ./ | grep zookeeper-.*tar.gz)
#zookeeper解压后文件名(截取字符串)
zookeeper_dir=${zookeeper_file_name%%.tar.gz}
sh ./${zookeeper_dir}/bin/zkServer.sh status ./${zookeeper_dir}/conf/1.zoo.cfg
sh ./${zookeeper_dir}/bin/zkServer.sh status ./${zookeeper_dir}/conf/2.zoo.cfg
sh ./${zookeeper_dir}/bin/zkServer.sh status ./${zookeeper_dir}/conf/3.zoo.cfg

